package com.evil.Servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.evil.DB_Utils.DB_Utils;
import com.evil.Data.Data;
import com.evil.QuartzJob.CreateOverItemLogsJob;
import com.evil.Utils.Log;
import com.evil.Utils.PropertiesUtils;
import com.evil.Utils.Utils;
import com.mysql.jdbc.Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/********************************************
 * 工程名：Web
 * 包名：${PACKAGE_NAME}
 * 时间：16-9-20 下午4:31
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：开始定时进程，随tomcat启动开始
 ********************************************/
public class StartServlet extends HttpServlet
{
    @Override
    public void init() throws ServletException
    {
        Log.println(Data.Path.getRoot());
        Log.println(Data.Path.getWeb_inf());
        Log.println(Data.Path.getCalsses());

        PropertiesUtils utils = new PropertiesUtils();

        DB_Utils.connection(
                utils.get("DB_Name"),
                utils.get("DB_User_Name"),
                utils.get("DB_User_Password"));
    }
}
